export function searchConfig() {
    const searchConfig = [
      {
        label: "支付类型",
        prop: "payType",
        placeholder: "请选择",
        type: "select",
        options: [
          { value: "0", label: "微信支付" },
          { value: "1", label: "支付宝支付" }
        ]
      },
      {
        label: "支付状态",
        prop: "status",
        placeholder: "请选择",
        type: "select",
        options: [
          { value: "0", label: "未支付" },
          { value: "1", label: "支付中" },
          { value: "2", label: "支付成功" },
          { value: "3", label: "支付失败" }
        ]
      }
    ]
    return searchConfig
}

export function tableConfig() {
    const tableConfig = {
        thead: [
          {
            type: "selection",
            width: 55,
            align: "center",
            fixed: 'left'
          },
          {
            label: "订单号",
            prop: "orderNo",
            align: "center",
            fixed: 'left'
          },
          {
            label: "项目名称",
            prop: "projectName",
            align: "center"
          },
          {
            label: "支付金额",
            prop: "money",
            align: "center"
          },
          { 
            label: "支付类型", 
            prop: "payTypeName",
            align: "center" 
          },
          {
            label: "支付状态",
            prop: "statusName",
            align: "center"
          },
          {
            label: "开始支付时间",
            prop: "startPayTime",
            align: "center"
          },
          {
            label: "结束支付时间",
            prop: "endPayTime",
            align: "center"
          },
          {
            label: "完成支付时间",
            prop: "finishTime",
            align: "center"
          },
          {
            label: "操作",
            type: "slot",
            slotName: "operation",
            align: "center",
            width: 160,
            fixed: 'right'
          }
        ]
    }
    return tableConfig
}

export default { searchConfig, tableConfig }